/*
 * CUIControlContainer.h
 *
 *  Created on: 2010-3-17
 *      Author: Administrator
 */

#ifndef CUICONTROLCONTAINER_H_
#define CUICONTROLCONTAINER_H_

#include "IUIControl.h"
#include "UIStyle.h"
#include <e32cmn.h>
#include "IUIContainer.h"
#include "UIControl.h"

class CUIControlContainer : public UIControl,public IUIContainer
	{
public:
	CUIControlContainer();
	virtual ~CUIControlContainer();
	
	virtual void AddControl(IUIControl* pControl);
	virtual void RemoveControl(IUIControl* pControl);
	
public:  //virtual
	virtual void Layout(TRect rc) = 0;
	virtual void Draw(CGraphicsContext& aGc);
	virtual void* GetInterface(const TDesC& aDes);
	
public:
	virtual TBool IsContainer()
		{
		return ETrue;
		}
	};

#endif /* CUICONTROLCONTAINER_H_ */
